agents.anac.y2011.IAMhaggler2011
Class IAMhaggler2011

java.lang.Object
  extended by negotiator.Agent
      extended by agents.anac.y2011.IAMhaggler2011.IAMhaggler2011

public class IAMhaggler2011
extends Agent

Author:
Colin Williams The IAMhaggler Agent, created for ANAC 2011. Designed by C. R. Williams, V. Robu, E. H. Gerding and N. R. Jennings.

Field Summary
protected  double acceptMultiplier
           
protected  BidCreator bidCreator
           
protected  double MAXIMUM_ASPIRATION
           
protected  Action myLastAction
           
protected  Bid myLastBid
           
protected  double RISK_PARAMETER
           
 
Fields inherited from class negotiator.Agent
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
 
Constructor Summary
IAMhaggler2011()
           
 
Method Summary
 Action chooseAction()
          this function is called after ReceiveMessage, with an Offer-action.
protected  Jama.Matrix generateRiskFunction(double riskParameter)
          Generate an n-by-m matrix representing the risk based utility for a given utility-time combination.
protected  double generateRiskFunction(double riskParameter, double utility)
          Generate the risk based utility for a given actual utility.
 java.lang.String getName()
           
protected  double getTarget(double opponentUtility, double time)
          Get the target at a given time, recording the opponent's utility.
static java.lang.String getVersion()
          Gets the version number.
 void init()
          This method is called by the protocol every time before starting a new session after the internalInit method is called.
protected  Bid proposeInitialBid()
           
protected  Bid proposeNextBid(Bid opponentBid)
           
 void ReceiveMessage(Action opponentAction)
          informs you which action the opponent did
 
Methods inherited from class negotiator.Agent
endSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RISK_PARAMETER

protected double RISK_PARAMETER

bidCreator

protected BidCreator bidCreator

MAXIMUM_ASPIRATION

protected double MAXIMUM_ASPIRATION

myLastAction

protected Action myLastAction

myLastBid

protected Bid myLastBid

acceptMultiplier

protected double acceptMultiplier
Constructor Detail

IAMhaggler2011

public IAMhaggler2011()
Method Detail

init

public void init()
Description copied from class: Agent
This method is called by the protocol every time before starting a new session after the internalInit method is called. User can override this method.

Overrides:
init in class Agent

getName

public java.lang.String getName()
Overrides:
getName in class Agent
Returns:
name of the agent.

proposeInitialBid

protected Bid proposeInitialBid()
                         throws java.lang.Exception
Throws:
java.lang.Exception

proposeNextBid

protected Bid proposeNextBid(Bid opponentBid)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getTarget

protected double getTarget(double opponentUtility,
                           double time)
Get the target at a given time, recording the opponent's utility.

Parameters:
opponentUtility - The utility of the most recent offer made by the opponent.
time - The current time.
Returns:
the target.

generateRiskFunction

protected Jama.Matrix generateRiskFunction(double riskParameter)
Generate an n-by-m matrix representing the risk based utility for a given utility-time combination. The combinations are given by the time and utility samples stored in timeSamples and utilitySamples

Parameters:
riskParameter - The risk parameter.
Returns:
an n-by-m matrix representing the risk based utility.

generateRiskFunction

protected double generateRiskFunction(double riskParameter,
                                      double utility)
Generate the risk based utility for a given actual utility.

Parameters:
riskParameter - The risk parameter.
utility - The actual utility to calculate the risk based utility from.
Returns:
the risk based utility.

ReceiveMessage

public final void ReceiveMessage(Action opponentAction)
Description copied from class: Agent
informs you which action the opponent did

Overrides:
ReceiveMessage in class Agent

getVersion

public static java.lang.String getVersion()
Gets the version number.

Returns:
the version number.

chooseAction

public final Action chooseAction()
Description copied from class: Agent
this function is called after ReceiveMessage, with an Offer-action.

Specified by:
chooseAction in class Agent
Returns:
(should return) the bid-action the agent wants to make.